laravel upload file to aws s3

42

composer require league/flysystem-aws-s3-v3
$image = Image::create([
    'filename' => basename($path),
    'url' => Storage::disk('s3')->url($path)
]);
$path = $request->file('image')->store('images', 's3');

Comments

Submit
0 Comments